#ifndef FASTER_H
#define FASTER_H

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <pthread.h>
#include <sys/types.h>
#include <dirent.h>
#include <time.h>
#include <sys/time.h>
#include <sys/mman.h>
#include <vector>
//#include <map>
#include <string>
#include <iostream>
#include <locale.h>



#include "DBOp.h"
#include "threadOp.h"
#include "util.h"

#define DEBUG false       //user debug
#define PRE_LINE 1000      //一行的最大长度
#define CONFIG "config"
#define MAXTHREAD 30
#define LOG_DIR "/home/wida/log/"
#define NEW_DIR "/home/wida/log/done/"
#define FILE_FIX ".txt"

typedef struct moption{
    char *key;
    char *value;
}moption;

typedef struct threadStatus
{
    string fileName;
    bool flag;
}threadStates;


#define  LEN  sizeof(moption)
using namespace std;

#endif // FASTER_H
